package com.javaweb.demo.dao;

import com.javaweb.demo.entity.User;

import java.util.List;

public interface UserDao {
    public boolean login(String name, String pwd);

    public boolean register(User user);

    public List<User> getUserAll();

    public boolean delete(String name);

    public boolean update(int id,String name,String pwd,String sex,String home,String info);

    public List<User> selectUser(int id,String name,String sex,String home);

    public boolean addfriend(String username,String name,String request);

    public boolean addfriend(String username,String name);

    public boolean delfriend(String username,String name);

    public boolean deleterequest(String name,String request);

    public List<User> queryfriends(String username);

    public List<User> queryfriendrequests(String username);
}
